package com.manlitech.manlichat.dto;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

/**
 * 聊天日志表
 * 
 * @author manli
 * @email 
 * @date 2020-07-27 19:41:22
 */
@ApiModel(value = "聊天日志表")
@Data
public class ChatMessage implements Serializable {

	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "Long")
	    private Long chatMessageId;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String fromId;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String toId;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String content;
	/**
	 * 消息时间
	 */

    @ApiModelProperty(value = "消息时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

	/**
	 * 消息是否查看
	 */
	@ApiModelProperty(value = "",dataType = "Integer")
	private Integer see;
}
